package top.lshaci.learning.alibaba.cloud.seata.storage.service;

import com.baomidou.mybatisplus.extension.service.IService;
import top.lshaci.learning.alibaba.cloud.seata.storage.entity.Storage;

/**
 * StorageService
 *
 * @author lshaci
 * @since 1.0.0
 */
public interface StorageService extends IService<Storage> {

    /**
     * 扣除存储数量
     *
     * @param commodityCode 商品编号
     * @param count         数量
     */
    void deduct(String commodityCode, int count);
}
